@import "../style/theme/color";

:host {
  display: block;
}

.devui-tags-host {
  position: relative;
  height: 100%;
  &:active {
    outline: 0;
  }
}


.devui-tags {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
  padding: 2px 5px;
  overflow: hidden;
  word-wrap: break-word;
  cursor: text;
  background-color: $white;
  border: 1px solid $gray1;
  border-radius: 1px;
  height: 100%;
  &:hover {
    border-color: $hover-control;
  }
  &.focused {
    outline: 0;
  }
  .devui-tag-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
  }
  .devui-tag-item {
    margin: 2px;
    padding: 0 5px;
    display: inline-block;
    min-height: 20px;
    line-height: 20px;
    border-radius: 1px;
    color: $dark1;
    background-color: rgba($status-yellow, 0.3);
    .remove-button {
      margin: 0 0 0 5px;
      padding: 0;
      border: none;
      background: 0 0;
      cursor: pointer;
      vertical-align: top;
      font-size: 16px;
      line-height: 20px;
      color: $dark1;
      &:hover {
        text-decoration: none;
      }
    }
  }
  .devui-input {
    border: 0;
    outline: 0;
    float: left;
    // margin-left: 5px;
    width: 100%;
    height: 26px;
    font-size: 14px;
    padding-left: 5px;
    &::-ms-clear {
      display: none;
    }
  }
}

.devui-tags-autocomplete {
  margin-top: 5px;
  position: absolute;
  padding: 5px 0;
  z-index: 99999;
  width: 100%;
  background-color: $white;
  border: 1px solid rgba($dark, 0.2);
  box-shadow: 0 5px 10px rgba($dark, 0.2);
  .devui-suggestion-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    max-height: 280px;
    overflow-y: auto;
    position: relative;
    .devui-suggestion-item {
      padding: 5px 10px;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 14px;
      color: $dark1;
      background-color: $white;
      &:hover {
        background-color: $hover-content;
      }
      &.selected{
        color: $focus1;
        background-color: $focus3;
      }
    }
  }
}
